package com.fwx.springcloud.server;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author : fengwenxiang
 * @date : 2022/6/26 23:25
 * @description：
 */
@FeignClient(value = "HYSTRIX-PAYMENT-SERVICE",fallback = PaymentHystrixService88imp.class)
public interface PaymentHystrixService88 {

    @GetMapping("/payment/hystrix/ok/{id}")
    String getOk(@PathVariable("id") Integer id);

    @GetMapping("/payment/hystrix/timeout/{id}")
    String getTimeOut(@PathVariable("id")Integer id);
}
